# *args的位置

# *args不能放在位置参数前面，a,b取不到值
# def func(*args,a,b,sex='man',):
#     print(a)
#     print(b)
#     print(sex)
#     print(args)
#     # print(kwargs)
# func(1,2,4,5,6)

# args如果想要接收到值之前，肯定要改变sex默认参数。
# def func(a,b,sex='man',*args):
#     print(a)
#     print(b)
#     print(sex)
#     print(args)
#     # print(kwargs)
# func(1,2,4,5,6)

# def func(a,b,*args,sex='man'):
#     print(a)
#     print(b)
#     print(sex)
#     print(args)
#     # print(kwargs)
# func(1,2,4,5,6)
# func(1,2,4,5,6,sex='women')

# **kwargs
# 位置参数,*args,默认参数，**kwargs
# def func(a,b,*args,sex='man',**kwargs,):
#     print(a)
#     print(b)
#     print(sex)
#     print(args)
#     print(kwargs)
# func(1,2,4,5,6,name='太白',age=18)

# 形参角度第四种传参方式：仅限关键字参数  (了解)
# 位置参数,*args,默认参数，仅限关键字参数,**kwargs
# def func(a,b,*args,sex='man',c,**kwargs,):
#     print(a)
#     print(b)
#     print(sex)
#     print(c)
#     print(args)
#     print(kwargs)
# func(1,2,4,5,6,67,c=666,name='太白',age=18,)
